import  http  from '@/api/index.js'
   /*  url,parms,method,headers={} */
const updataconfig=(data)=>{
    return new Promise((resolve, reject) => {
        http.post('/api/config/updataconfig',data).then((res)=>{
            resolve(res)
        })
    })
}
const getconfig =()=>{
    return new Promise((resolve, reject) => {
        http.get('/api/config/getconfig').then((res)=>{
            resolve(res)
        })
    })
}
export {
    updataconfig,
    getconfig
}
